﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="CS_JBDW_Query.aspx.cs" Inherits="CoolERP_Web.User.CS_JBDW_Query" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td class="tbHead_L"></td>
            <td class="tbHead_M"><div><b>基本单位</b></div></td>
            <td class="tbHead_R"></td>
        </tr>
        <tr>
            <td class="tbBody_L">
            </td>
            <td class="tbBody_M">
                <ul class=tags style="width:70%">
                    <li class=liLeft><asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/Images/Common/btn_add0.png" OnClick="btnAdd_Click" /></li>
                    <li class=liRight><asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" OnClick="btnDel_Click" OnClientClick="return isCheck('GridView1');" /></li>
                </ul>
                <asp:GridView ID="GridView1" runat="server" DataKeyNames="BH" Width="70%" PageSize="20"
                    ClientIDMode="Static" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
                    OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating">
                    <Columns>
                        <asp:TemplateField HeaderStyle-Width=60px>
                        <HeaderTemplate><label><input type="checkbox" onclick="checkAll('GridView1',this)" />全选</label></HeaderTemplate>
                        <ItemTemplate><input type=checkbox id="chkSel" name="chkSel" runat=server value='<%# Eval("BH")%>' /></ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="编号">
                            <ItemTemplate><%# Eval("BH")%></ItemTemplate><EditItemTemplate><%# Eval("BH")%></EditItemTemplate>
                            <FooterTemplate><asp:TextBox ID="txtBH" runat=server MaxLength=3 Width=50px/></FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="名称">
                            <ItemTemplate><%# Eval("MC")%></ItemTemplate>
                            <EditItemTemplate><asp:TextBox ID="txtMC" runat=server Text='<%# Eval("MC")%>'/></EditItemTemplate>
                            <FooterTemplate><asp:TextBox ID="txtMC" runat=server/></FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="备注">
                            <ItemTemplate><%# Eval("BZ")%></ItemTemplate>
                            <EditItemTemplate><asp:TextBox ID="txtBZ" runat=server Text='<%# Eval("BZ")%>'/></EditItemTemplate>
                            <FooterTemplate><asp:TextBox ID="txtBZ" runat=server/></FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="修改">
                        <ItemTemplate><asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/Common/btn_edit0.png" CommandName="Edit" /></ItemTemplate>
                        <EditItemTemplate>
                            <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" CommandName="Update" />&nbsp;
                            <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" CommandName="Cancel" />
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" OnClick="btnSave_Click" />&nbsp;
                            <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" OnClick="btnCancel_Click" />
                        </FooterTemplate>
                    </asp:TemplateField>
                    </Columns>
                    <PagerSettings Visible="false" />
                </asp:GridView>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager"
                    UrlPaging="false" ShowCustomInfoSection="Left" FirstPageText="首页" LastPageText="尾页"
                    PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox"
                    ShowPageIndexBox="Auto" SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
                </webdiyer:AspNetPager>
                <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
            </td>
            <td class="tbBody_R">
            </td>
        </tr>
        <tr>
            <td class="tbFoot_L">
            </td>
            <td class="tbFoot_M">
            </td>
            <td class="tbFoot_R">
            </td>
        </tr>
    </table>
</asp:Content>
